package cn.iocoder.yudao.module.mini.controller.admin.order.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 订单 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class OrderBaseVO {

    @Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单编号不能为空")
    private Long number;

    @Schema(description = "技师id", requiredMode = Schema.RequiredMode.REQUIRED, example = "9546")
    @NotNull(message = "技师id不能为空")
    private Long technicianId;

    @Schema(description = "客户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "18761")
    @NotNull(message = "客户id不能为空")
    private Long customerId;

    @Schema(description = "订单状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单状态不能为空")
    private String state;

    @Schema(description = "服务地址id", requiredMode = Schema.RequiredMode.REQUIRED, example = "28646")
    @NotNull(message = "服务地址id不能为空")
    private Long addressId;

    @Schema(description = "服务项目id", requiredMode = Schema.RequiredMode.REQUIRED, example = "19866")
    @NotNull(message = "服务项目id不能为空")
    private Long projectId;

    @Schema(description = "订单总额（元）", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "订单总额（元）不能为空")
    private Long total;

    @Schema(description = "支付状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "支付状态不能为空")
    private String isPayment;

    @Schema(description = "预约时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime serviceTime;

}
